package com.jdls;

import com.jdls.config.StudentConfig;
import com.jdls.pojo.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 嘉德罗斯
 * @date 2021/9/13
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ann = new AnnotationConfigApplicationContext(StudentConfig.class);
        Student bean = ann.getBean(Student.class);
        bean.eat();

    }
}
